package com.ruijie.acl.web;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

import com.ruijie.emp.asynchandle.AsyncService;

@Name("importAclDeviceAction")
@Scope(ScopeType.CONVERSATION)
public class ImportAclDeviceAction extends BaseImportDeviceAsynLogAction {
	@In("#{importAclDeviceAsyncService}")
	private AsyncService importAsyncService;
	
	@In("#{aclDeviceAction}")
	private AclDeviceAction aclDeviceAction;

	@Override
	protected String getLogPage() {
		return "/acl/importAclDeviceLog.seam";
	}

	@Override
	protected AsyncService getServer() {
		return importAsyncService;
	}
	
	@Override
	public void returnTo(){
		this.aclDeviceAction.setEntityList(null);
		redirectTo("/acl/aclDeviceIndex.seam",false);
	}
}
